package com.limao.push;


import com.limao.CacheManager.user_rmbCacheManager;

public class BuyCutThread  extends Thread {
	
	private int userid;
	private int userViplevel;
	private float totalRmb;
	private int goodsnum;
	private String orderid;
	private String projectid;
	private String projectname;
	
	
	@Override
	public void run() {
		try {
			startBuyCut(totalRmb, goodsnum,userid,userViplevel,orderid,projectid,projectname);
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
	
	//&新鲜宝 购物分成 
	public BuyCutThread(float totalRmb,int goodsnum, int userid,int userViplevel,String orderid,String projectid,String projectname) {
		super();
		this.userid = userid;
		this.userViplevel=userViplevel;
		this.totalRmb=totalRmb;
		this.goodsnum=goodsnum;
		this.orderid=orderid;
		this.projectid=projectid;
		this.projectname=projectname;
	}
	
	private void startBuyCut(float totalRmb, int goodsnum,int userid,int userViplevel,String orderid,String projectid,String projectname)
	{
		//对本userid进行上2级的分成
		user_rmbCacheManager.getInstance().BuyCut(totalRmb,goodsnum,userid,userViplevel,orderid,projectid,projectname);

	}
	

}
